﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Happy.Examples.OrderManagement.Domain.Orders.States
{
    internal sealed class NewState : OrderState
    {
        protected override bool CanChangeOrder()
        {
            return true;
        }

        public override void Save()
        {
            this.Order.MarkAsSaved();
        }

        public override OrderStatus Status
        {
            get { return OrderStatus.New; }
        }
    }
}
